﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="FrmListaMarca.aspx.cs" Inherits="Intelsi.WB.FrmListaMarca" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            color: #000000;
        }
        .style2
        {
            font-size: medium;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Button ID="Button2" runat="server" Text="Nueva Marca" Height="30px" 
        onclick="Button2_Click" />
    <br />
    <br />
    <p class="style1">
        <strong><span class="style2">Marca: </span>
        <asp:TextBox ID="TextBox1" runat="server" Height="23px" Width="204px"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" Height="30px" Text="Banco" 
            Width="65px" />
        </strong>
    </p>
    <p class="style1">
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            onobjectcreating="ObjectDataSource1_ObjectCreating" 
            SelectMethod="GetFromMarcaByNombre" TypeName="Intelsi.BusinessLogic.MarcaBL">
            <SelectParameters>
                <asp:ControlParameter ControlID="TextBox1" Name="nombremarca" 
                    PropertyName="Text" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </p>
    <p class="style1">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataSourceID="ObjectDataSource1" ForeColor="#333333" 
            GridLines="None" style="font-weight: 700; font-size: small">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="IdMarca" HeaderText="IdMarca" 
                    SortExpression="IdMarca" />
                <asp:BoundField DataField="Nombre" HeaderText="Nombre" 
                    SortExpression="Nombre" />
                <asp:BoundField DataField="Comentario" HeaderText="Comentario" 
                    SortExpression="Comentario" />
                <asp:TemplateField HeaderText="Acciones">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" 
                            PostBackUrl='<%# Eval("IdMarca","FrmMarca.aspx?acc=editar&IdMarca={0}") %>'>Editar</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
    </p>
</asp:Content>
